package com.macrounion.atv.service.service;

import com.macrounion.atv.service.dto.req.VirtualReqDto;
import com.macrounion.atv.service.entity.VirtualChannel;
import com.macrounion.atv.service.entity.ext.VirtualExt;
import com.macrounion.base.service.service.BaseService;

import java.util.HashMap;
import java.util.List;

public interface VirtualChannelService extends BaseService<VirtualChannel> {

    List<VirtualExt> getVirtualList(VirtualReqDto virtualReqDto);

    int findCount(String deviceId,String virtualId,String channelCode);

    VirtualChannel getVirtual(String deviceId, String channelCode);

    /**
     * 获取函数中含有此通道的所有虚拟通道
     * @param deviceCode
     * @param channelCode
     * @return
     */
	List<VirtualChannel> getFxHasDeviceCodeAndChannelCode(String deviceCode, String channelCode);

	List<VirtualChannel> getList();

    VirtualChannel saveFx(VirtualChannel virtual);

    int batchUpdate(HashMap<String,Object> mapVirtual);

    List<VirtualChannel> getVirtualByDeviceId(String deviceId);

	List<VirtualExt> getAll();
}